<%--
  Created by IntelliJ IDEA.
  User: 陈俊雄
  Date: 2018/5/28
  Time: 17:11
--%>
<%@ page contentType="text/html;charset=UTF-8" %>
<div class="modal-header">
    <button class="close" ng-click="cancel()">
        <span aria-hidden="true">×</span>
    </button>
    <h3 class="modal-title" id="modal-title">{{ type == 0 ? '添加产品类型' : '编辑产品类型'}}</h3>
</div>
<div class="modal-body" id="modal-body">
    <div class="ibox-content no-borders tab-content">
        <form name="myForm" class="form-horizontal">
            <div class="form-group">
                <label class="col-sm-2 control-label p-w-xs"><span class="text-danger">*</span>产品类型名称：</label>
                <div class="col-sm-10">
                    <input class="form-control b-r-sm" type="text" name="productTypeName" placeholder="必填"
                           ng-model="websiteProType.productTypeName" ng-blur="productTypeNameBlur($event, websiteProType.productTypeName)"
                           required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label p-w-xs"><span class="text-danger">*</span>产品类型编码：</label>
                <div class="col-sm-10">
                    <input class="form-control b-r-sm" type="number" name="productTypeId" placeholder="必填"
                           ng-model="websiteProType.productTypeId" ng-blur="productTypeIdBlur($event, websiteProType.productTypeId)"
                           required>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label p-w-xs">备注：</label>
                <div class="col-sm-10">
                    <input class="form-control b-r-sm" type="text" name="remark"
                           ng-model="websiteProType.remark">
                </div>
            </div>
        </form>
    </div>
    <div class="row">
        <div class="col-sm-12">
            <div class="center">
                <button class="btn btn-sm btn-primary" type="button" ng-click="confirm(websiteProType)"
                        ng-disabled="myForm.$error.required">
                    确定
                </button>
            </div>
        </div>
    </div>
</div>